package com.mjk.common.ai.entity;

import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.annotation.ArcSharding;
import com.mjk.common.core.jdbc.annotation.Filed;
import com.mjk.common.core.jdbc.annotation.Id;
import com.mjk.common.core.jdbc.service.idgenerator.IdGenerateType;
import com.pgvector.PGvector;
import lombok.Data;

/**
 * 知识库-嵌入实体
 */
@Data
@ArcSharding(dataSource = "pg", table = "adi_knowledge_base_embedding")
public class KnowledgeBaseEmbedding extends BaseEntity {

    @Id(type = IdGenerateType.AUTO_INCR)
    @Filed(cloum = "embedding_id", comment = "embedding_id")
    private String embeddingId;

    @Filed(cloum = "embedding", comment = "embedding")
    private PGvector embedding;

    @Filed(cloum = "text", comment = "对应的文档")
    private String text;
}
